#ifndef TLB_H
#define TLB_H
#include "Memory.h"
void TLB_init();
int TLB_find(int pid, unsigned VPN, PageTableEntry *res, int T);
void TLB_add(int pid, unsigned VPN, PageTableEntry e, int T);
void TLB_setd(int pid, unsigned VPN, int T);
// 移除frame，将所有指向该frame的项无效
void TLB_delF(unsigned PPN, int T);
// 移除pageTableEntry时调用，将所有页表项的缓存清除
void TLB_delE(int pid, unsigned VPN,int T);
#endif